using UnityEditor;
using UnityEditor.UI;
using UnityEngine;
using UnityX;

namespace UnityXEditor
{
    [CanEditMultipleObjects]
    [CustomEditor(typeof(Line2D), true)]
    internal class Line2DEditor : GraphicEditor
    {
        private SerializedProperty m_LineWidth;

        protected override void OnEnable()
        {
            base.OnEnable();
            m_LineWidth = serializedObject.FindProperty("m_LineWidth");
        }
        public override void OnInspectorGUI()
        {
            serializedObject.Update();
            //AppearanceControlsGUI();
            //RaycastControlsGUI();
            //MaskableControlsGUI();
            EditorGUILayout.PropertyField(m_RaycastTarget);
            EditorGUILayout.PropertyField(m_Color);
            EditorGUILayout.PropertyField(m_LineWidth, new GUIContent("线宽"));
            serializedObject.ApplyModifiedProperties();
        }
    }
}